home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_06 / plauger / spsofset.c < prev    next >
C/C++ Source or Header  |  1994-04-04  |  262b  |  12 lines

  1. --------------- Listing 3: The function streampos::offset ---------------
  2.  
  3. // sposoffset -- streampos::offset()
  4. #include <streambuf>
  5.  
  6. streamoff streampos::offset() const
  7.     {    // get offset
  8.     return (_Fp._Off == _BADOFF ? _BADOFF : _Pos + _Fp._Off);
  9.     }
  10.  
  11.  
  12.